package org.example.springboot3.service;

import org.apache.ibatis.annotations.Param;
import org.example.springboot3.domain.Registrations;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author xu264
* @description 针对表【registrations】的数据库操作Service
* @createDate 2025-05-26 13:27:54
*/
public interface RegistrationsService extends IService<Registrations> {
    List<String> getMyActivityList(String id);//获取当前用户参与的活动列表ID
    String getParticipantNum(String id);//获取当前活动的参与人数
    int exitActivity(@Param("userId")String userId, @Param("activityId")String activityId);
    int deleteByActivityId(@Param("activityId")String activityId);
}
